<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">

        <!-- <ul> -->
            <!-- v-for的优先级比v-if高 -->
            <!-- <li v-if="item.isshow" v-for="item in arr">{{item.name}}</li> -->
        <!-- </ul> -->
        <div>
            <div v-for="item in arr">
                <div v-if="item.isshow">{{item.name}}</div>
            </div>
        </div>

    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                arr:[{
                    name:"张安",
                    isshow:true
                },
                {
                    name:"李四",
                    isshow:false
                },{
                    name:"王五",
                    isshow:true
                }]
            }
        })
    </script>
</body>
</html>